# -*- coding: utf-8 -*-

import scrapy
import redis
import time
from scrapy.mail import MailSender
from email.header import Header
redis_db = redis.Redis(host='127.0.0.1', port=6379, db=0) #连接redis，相当于MySQL的conn

class mpo_dmoz(scrapy.Spider):
    name = "mpo_dmoz"
    allowed_domains = ["doc.scrapy.org"]
    start_urls = ["https://doc.scrapy.org/en/latest/_static/selectors-sample1.html"]

    def parse(self, response):
        while True:
            time.sleep(0.2)
            print('1')


